<?php
//   +----------------------------------------------------------------------
//   | Copyright (c) 2015-2025 http://www.hdphp.cn All rights reserved.
//   | Licensed ( http://www.hdphp.cn/licenses/ )
//   | Author: Jack <sophia2152@qq.com>
//   | 官方网址: http://www.hdphp.cn
//   | 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用。
//   | 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
//   +----------------------------------------------------------------------
namespace app\jobs\work;

use app\services\work\WorkGroupChatServices;
use hdphp\basic\BaseJobs;
use hdphp\traits\QueueTrait;

/**
 * Class：企业微信群
 * 创建人：Jack
 * 创建时间：2023/12/11 14:18
 * @package app\jobs\work
 */
class WorkGroupChatJob extends BaseJobs
{

    use QueueTrait;

    public function authChat($corpId, $chatId)
    {
        /** @var WorkGroupChatServices $make */
        $make = app()->make(WorkGroupChatServices::class);
        return $make->saveWorkGroupChat($corpId, $chatId);
    }

    /**
     * 注释：authGroupChat
     * 创建人：Jack
     * 创建时间：2023/12/11 14:18
     * @param $nextCursor
     * @return bool
     */
    public function authGroupChat($nextCursor)
    {
        /** @var WorkGroupChatServices $make */
        $make = app()->make(WorkGroupChatServices::class);
        return $make->authGroupChat($nextCursor);
    }

}
